<?php
namespace frontend\components;

/**
 * 独立于应用主题基类
 * @author Administrator
 *
 */
class BaseComponentController extends \common\components\BaseWebController
{

    public $enableCsrfValidation = true;

    protected $allowAllAction = [

    ]; //在这里面的就不用检查合法性

    protected $allowAuth = [

    ];//不检查权限数组

    public function __construct($id, $module, $config = [])
    {
        parent::__construct($id, $module, $config = []);
    }

    public function beforeAction($action)
    {
        return parent::beforeAction($action);
    }

    public function setTitle($title = "*"){
        $this->getView()->title = $title;
    }

}